package wanbang.Exception;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;

@ControllerAdvice
public class MyExcetionHandle {
	@ResponseBody
	@ExceptionHandler(Exception.class)
	public String testException() {
		return "error";
	}
}
